package com.web.exiaodao.remote.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.web.exiaodao.business.entity.AutherWorksTable;
import com.web.exiaodao.remote.vo.AutherWorksTableVo;
import com.web.webstart.base.service.ApiBaseService;
import com.web.webstart.base.util.result.XaResult;
import com.web.webstart.base.exception.BusinessException;


public interface ApiAutherWorksTableService extends ApiBaseService<AutherWorksTableVo,AutherWorksTable>{
        /**
        * 查询最新一条满足条件的实体信息
        * @throws BusinessException
        */
        public XaResult<AutherWorksTableVo>  findLastOne() throws BusinessException;
        /**
         * 查询所有玩/艺术/学乐/达人-作品表信息
         * @Title: findAutherWorksTableList 
         * @param pageable
         * @param autherWorksTableVo
         * @return
         * @throws BusinessException
         */
        public XaResult<Page<AutherWorksTableVo>> findAutherWorksTableList(Integer type,Pageable pageable,AutherWorksTableVo autherWorksTableVo) throws BusinessException;
        //玩乐详情
        public XaResult<List<AutherWorksTableVo>> findAutherWorksTableById(Integer type,Long userId,AutherWorksTableVo autherWorksTableVo) throws BusinessException;
        //查询主要作品
        public XaResult<List<AutherWorksTableVo>> findWorksById(Long atrId) throws BusinessException;
}
